package com.netease.nie.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.netease.nie.model.DrawLotteryNormalGoodsInfo;

/**
 * 抽奖商品业务自定义操作
 * 
 * @author gzlibingjie
 */
public interface DrawLotteryNormalGoodsInfoMapper {

	public List<DrawLotteryNormalGoodsInfo> queryByActivityId(Integer activityId);

	public DrawLotteryNormalGoodsInfo queryNotDeletedDrawLotteryNormalGoodsInfoById(Integer id);
	
	public DrawLotteryNormalGoodsInfo queryDrawLotteryNormalGoodsInfoById(Integer id);
	
	public int deductStock(Integer id);

	public List<DrawLotteryNormalGoodsInfo> queryDrawLotteryNormalGoodsInfosByNormalGoodsIds(@Param("normalGoodsIds") List<Integer> normalGoodsIds);

}
